package com.design.factory;

/**
 * Created by yijy on 2017/11/8.
 *
 */
public class Test1 {

    public static void main(String[] args) {
        test_02();
    }

    public static void test_01(){
        FactoryDesiger factoryDesiger = new FactoryDesiger();
        Sender sender = factoryDesiger.producer("mail");
        sender.Send();
    }

    public static void test_02(){
        SendFactory sendFactory = new SendFactory();
        Sender sender = sendFactory.produceMail();
        sender.Send();
    }

    public static void test_03(){
        Sender sender = SendFactory.produceMail();
        sender.Send();
    }




}
